package com.summer.campussct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.summer.campussct.pojo.Role;
import com.summer.campussct.pojo.dto.RestResult;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author Mr.Chen
 * @since 2024-05-07
 */
public interface IRoleService extends IService<Role> {

    RestResult getList();

    RestResult addRole(Role role);

    RestResult modifyRole(Role role, long id);

    RestResult deleteRole(long id);

    RestResult rolePermList(long id);

    RestResult assignPrem(long id, Map<String, List<Long>> permIdListMap);

    RestResult getListEnabled();
}
